#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<string>
#include<iostream>
using namespace std;
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    void initFileList();
    void StartServer();
    string path;

    ~MainWindow();
public slots:
    void ButtonCompressHandler();
    void ButtonDecompressHandler();
    void ButtonDeleteFileHandler();
    void ButtonCreateFileHandler();
    void ButtonRefreshHandler();
    void textChanged(QString str);
    
private:
    Ui::MainWindow *ui;
    void displayContentsOfFile(std::string);
    void displayFileSizes(std::string);
    std::string integerToString(int);
};

#endif // MAINWINDOW_H
